package com.yr.ryjk.doctor.entity;

import java.util.Date;

import org.hibernate.validator.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;

import com.yr.ryjk.common.Constant;

/**
 * 医生
 * @author Rick
 * 
 */
public class Doctor {
	private String id;

	@NotBlank
	private String depId;

	@NotBlank
	private String dutyId;

	@NotBlank
	private String hospitalId;

	private String expertTypeId;

	@NotBlank
	private String phone;

	private String password;

	@NotBlank
	private String realName;

	private int gender;
	
	@DateTimeFormat(pattern=Constant.DATE_FORMAT_YEAR)
	private Date birthday;

	private int workStartYear;

	@NotBlank
	private String goodAt;

	@NotBlank
	private String halfPicUrl;
   
//	@NotBlank
	private String cardUrl;
//	@NotBlank
	private String workProofPicUrl;
	
	@DateTimeFormat(pattern=Constant.DATE_FORMAT_YEAR)
	private Date registerTime;

	private Date lastLoginTime;

	private int askPrice;

	private int coin;

	private String coinMd5;

	private int totalGainCoin;

	private int scanTimes;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDepId() {
		return depId;
	}

	public void setDepId(String depId) {
		this.depId = depId;
	}

	public String getDutyId() {
		return dutyId;
	}

	public void setDutyId(String dutyId) {
		this.dutyId = dutyId;
	}

	public String getHospitalId() {
		return hospitalId;
	}

	public void setHospitalId(String hospitalId) {
		this.hospitalId = hospitalId;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public int getGender() {
		return gender;
	}

	public void setGender(int gender) {
		this.gender = gender;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public int getWorkStartYear() {
		return workStartYear;
	}

	public void setWorkStartYear(int workStartYear) {
		this.workStartYear = workStartYear;
	}

	public String getGoodAt() {
		return goodAt;
	}

	public void setGoodAt(String goodAt) {
		this.goodAt = goodAt;
	}

	public String getHalfPicUrl() {
		return halfPicUrl;
	}

	public void setHalfPicUrl(String halfPicUrl) {
		this.halfPicUrl = halfPicUrl;
	}

	public String getCardUrl() {
		return cardUrl;
	}

	public void setCardUrl(String cardUrl) {
		this.cardUrl = cardUrl;
	}

	public String getWorkProofPicUrl() {
		return workProofPicUrl;
	}

	public void setWorkProofPicUrl(String workProofPicUrl) {
		this.workProofPicUrl = workProofPicUrl;
	}

	public Date getRegisterTime() {
		return registerTime;
	}

	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public int getAskPrice() {
		return askPrice;
	}

	public void setAskPrice(int askPrice) {
		this.askPrice = askPrice;
	}

	public int getCoin() {
		return coin;
	}

	public void setCoin(int coin) {
		this.coin = coin;
	}

	public String getCoinMd5() {
		return coinMd5;
	}

	public void setCoinMd5(String coinMd5) {
		this.coinMd5 = coinMd5;
	}

	public int getTotalGainCoin() {
		return totalGainCoin;
	}

	public void setTotalGainCoin(int totalGainCoin) {
		this.totalGainCoin = totalGainCoin;
	}

	public int getScanTimes() {
		return scanTimes;
	}

	public void setScanTimes(int scanTimes) {
		this.scanTimes = scanTimes;
	}

	public void setExpertTypeId(String expertTypeId) {
		this.expertTypeId = expertTypeId;
	}

	public String getExpertTypeId() {
		return expertTypeId;
	}
}